/**
 * Program  : IndexActivity.java
 * Author   : qianj
 * Create   : 2012-6-12 下午3:22:11
 *
 * Copyright 2012 by newyulong Technologies Ltd.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of newyulong Technologies Ltd.("Confidential Information").  
 * You shall not disclose such Confidential Information and shall 
 * use it only in accordance with the terms of the license agreement 
 * you entered into with newyulong Technologies Ltd.
 *
 */

package cn.colorful.olympic.activity;

import java.util.ArrayList;
import java.util.List;

import cn.colorful.olympic.R;
import cn.colorful.olympic.adapter.GoldListViewAdapter;
import cn.colorful.olympic.bean.GoldJsonBean;
import android.app.Activity;
import android.os.Bundle;
import android.widget.ListView;

/**
 * 金牌榜单
 * @author   qianj
 * @version  1.0.0
 * @2012-6-12 下午3:22:11
 */
public class ListActivity extends Activity{
	private ListView goldListView;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.list);
		
		findViews();
		initRes();
		setValues();
		setListeners();
		
		
	}

	private void setListeners() {
		// TODO Auto-generated method stub
		
	}

	private void setValues() {
		// TODO Auto-generated method stub
		List<GoldJsonBean> list = new ArrayList<GoldJsonBean>();
		GoldJsonBean gb = new GoldJsonBean("11", "中國", 222, 11, 111);
		list.add(gb);
		list.add(gb);
		list.add(gb);
		list.add(gb);
		goldListView.setAdapter(new GoldListViewAdapter(this, list));
	}

	private void initRes() {
		// TODO Auto-generated method stub
		
	}

	private void findViews() {
		goldListView = (ListView) findViewById(R.id.gold_listview);	
	}
}

